home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
ML_VECTB.ZIP
/
UTILS
/
MKFORM2.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-03-06
|
1KB
|
52 lines
uses dosio;
var
coord:array[0..60] of record x,y,z:integer end;
max:word;
f:file;
Procedure BuildForm;
var a:word;
begin
max:=0;
for a:=0 to 11 do begin
with coord[max] do begin
x:=trunc(a*12);
y:=trunc(60*sin(2*pi*a/11));
z:=0;
end;
inc(max);
end;
for a:=0 to 11 do begin
with coord[max] do begin
x:=trunc(a*12);
y:=-trunc(60*sin(2*pi*a/11));
z:=0;
end;
inc(max);
end;
for a:=0 to 11 do begin
with coord[max] do begin
x:=trunc(a*12);
y:=0;
z:=-trunc(60*sin(2*pi*a/11));;
end;
inc(max);
end;
for a:=0 to 11 do begin
with coord[max] do begin
x:=trunc(a*12);
y:=0;
z:=trunc(60*sin(2*pi*a/11));;
end;
inc(max);
end;
end;
begin
Writeln('Making figure ...');
openforoutput(f,'_2blobs.bal','');
BuildForm;
blockwrite(f,max,2); { Nr of points in the 3D form }
blockwrite(f,coord,max*3*2);
closefile(f,'');
end.